88看球[体].js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. var rule = {
  2. title: "88看球[球]",
  3. // host: 'http://www.88kq.net/',//发布页
  4. // host:'http://www.88kanqiu.cc',
  5. // host: "http://www.88kanqiu.live",
  6. host: "http://www.88kanqiu.bar",
  7. url: "/match/fyclass/live",
  8. searchUrl: "",
  9. searchable: 0,
  10. quickSearch: 0,
  11. class_parse: ".nav-pills li;a&&Text;a&&href;/match/(\\d+)/live",
  12. headers: {
  13. "User-Agent": "PC_UA",
  14. },
  15. timeout: 5000,
  16. play_parse: true,
  17. pagecount: {
  18. "1": 1,
  19. "2": 1,
  20. "4": 1,
  21. "22": 1,
  22. "8": 1,
  23. "9": 1,
  24. "10": 1,
  25. "14": 1,
  26. "15": 1,
  27. "12": 1,
  28. "13": 1,
  29. "16": 1,
  30. "28": 1,
  31. "7": 1,
  32. "11": 1,
  33. "33": 1,
  34. "27": 1,
  35. "23": 1,
  36. "26": 1,
  37. "3": 1,
  38. "21": 1,
  39. "18": 1
  40. },
  41. lazy: $js.toString(() => {
  42. if (/embed=/.test(input)) {
  43. let url = input.match(/embed=(.*?)&/)[1];
  44. url = base64Decode(url);
  45. input = {
  46. jx: 0,
  47. url: url.split('#')[0],
  48. parse: 0
  49. }
  50. } else if (/\?url=/.test(input)) {
  51. input = {
  52. jx: 0,
  53. url: input.split('?url=')[1].split('#')[0],
  54. parse: 0
  55. }
  56. } else {
  57. input
  58. }
  59. }),
  60. limit: 6,
  61. double: false,
  62. 推荐: "*",
  63. 一级: ".list-group .group-game-item;.d-none&&Text;img&&src;.btn&&Text;a&&href",
  64. 二级: {
  65. title: ".game-info-container&&Text;.customer-navbar-nav li&&Text",
  66. img: "img&&src",
  67. desc: ";;;div.team-name:eq(0)&&Text;div.team-name:eq(1)&&Text",
  68. content: "div.game-time&&Text",
  69. tabs: "js:TABS=['道长在线']",
  70. lists: $js.toString(() => {
  71. LISTS = [];
  72. let html = request(input.replace('play', 'play-url'));
  73. let pdata = JSON.parse(html).data;
  74. pdata = pdata.slice(6);
  75. pdata = pdata.slice(0, -2);
  76. pdata = base64Decode(pdata);
  77. // log(pdata);
  78. let jo = JSON.parse(pdata).links;
  79. let d = jo.map(function (it) {
  80. return it.name + '$' + urlencode(it.url)
  81. });
  82. LISTS.push(d)
  83. }),
  84. },
  85. 搜索: "",
  86. };